<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@include file="../common/common_java.jsp" %>
<header class="navbar-wrapper" style="height: 70px;">
    <div id="nav-fixed" class="navbar navbar-black navbar-fixed-top" >
        <div class="container cl">
            <a class="logo navbar-logo hidden-xs f-20" href="${ctx}" target="_blank">
              <%--   <img src="${imgBase}/common/logoLite.png"> --%>
          		    大众投票
            </a>
            <a class="logo navbar-logo-m visible-xs" href="javascript:void(0)">大众投票www.polls123.com</a>
            <a aria-hidden="false"  class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>
            <nav class="nav navbar-nav nav-collapse" role="navigation" id="Hui-navbar" >
                <ul class="cl">
                    <li class=" <%if("vote_index".equals(active)){%>current<%}%> "><a href="${ctx}" target="_blank">首页</a></li>
                    <li class=" <%if("vote_class".equals(active)){%>current<%}%> "><a href="${ctx}/search/result?tabId=1" target="_blank">分类</a></li>
                    <li class=" <%if("vote_label".equals(active)){%>current<%}%> "><a href="${ctx}/label/list" target="_blank">标签</a></li>
                    <li class=" <%if("vote_link".equals(active)){%>current<%}%> "><a href="${ctx}/link/list" target="_blank">链接</a></li>
                  	 <c:if test="${isLogin==true}">
                	    <li class="dropDown dropDown_hover f-r"><a class="dropDown_A" href="${ctx}/user/center" target="_blank"><%=userSession.gettUsers().getDisplayName()%></a>
                	    	<ul class="dropDown-menu menu radius box-shadow">
								<li><a href="${ctx}/user/center">个人中心</a></li>
								<li><a href="${ctx}/logout">登出</a></li>
							</ul>
                	    </li>
                    </c:if>
                    <c:if test="${isLogin==false}">
	                    <li class="f-r"><a href="${ctx}/loginInit" target="_blank">登录</a></li>
	                    <li class="f-r"><a href="${ctx}/register/init" target="_blank">注册</a></li>                    	
                    </c:if>
                </ul>
            </nav>
        </div>
    </div>
    <canvas id="canv"></canvas>
</header>

<!--  特殊要求 百度统计需要加代码，body标签加此代码 -->
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?3eb474ab6a7534fff4ee0353dc1494f8";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
